widget: Fix can-focus
authorMatthias Clasen <mclasen@redhat.com>
Wed, 27 Jan 2021 04:43:11 +0000 (23:43 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 7 Feb 2021 16:35:34 +0000 (11:35 -0500)
commit2194421de3ddcd325370abbbb0ac10b452a04b15
tree2cb1065e70413dad5e0bbf80f29ec836660d954d
parentc2235cee2d8e60e205816de7e8aae3ffc7c12d62
widget: Fix can-focus

Setting can-focus to FALSE on a widget is supposed
to prevent focus from entering the entire subtree.
So when we grab focus directly to a widget, we need
to check the can-focus flag not just of the widget
itself, but all its ancestors.

Fixes: #3610
gtk/gtkwidget.c